package com.xxh.cloud.provider.entry;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@TableName("t_sms_log")//标记对应的数据库表名
public class SmsLog {
    @TableId(type = IdType.AUTO)//标记主键，并设置生成策略
    private int id;
    private String phone;//存储空间名称
    private int type;//对象名
    private String content;//访问地址
    private Date ctime;

    public SmsLog(String phone, int type, String content, Date ctime) {
        this.phone = phone;
        this.type = type;
        this.content = content;
        this.ctime = ctime;
    }
}
